##########################################
## Copyright 2012-2013 Ceruti Francesco & contributors
##
## This file is part of LiSP (Linux Show Player).
##########################################

from PyQt4.QtGui import QWidget


class PreferencesWidget(QWidget):

    NAME = 'NoName'

    def __init__(self, size, parent=None):
        super(PreferencesWidget, self).__init__(parent)
        self.resize(size)

    def enableCheck(self, enable):
        '''All options must be grouped into QGroupBox,
        on multi-edit mode this method is called for
        enable check on groupBoxes and set the (check) values to False.'''

    def getConfiguration(self):
        '''Puts the setting values in a dict, only if its groupbox is checked,
        and return the dict.'''
        return {}

    def setConfiguration(self, conf):
        '''Read current setting form conf parameter (global configuration).
        if a key is not present disables the corresponding element'''
